package com.stylefeng.guns.modular.pay.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;

import org.springframework.data.annotation.Transient;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 佳付通商户开通业务
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-17
 */
@TableName("pay_mch_bus")
public class MchBus extends Model<MchBus> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商户编码
     */
    @TableField("mer_code")
    private String merCode;
    /**
     * 通道商户编号
     */
    @TableField("ch_mer_code")
    private String chMerCode;
    /**
     * 业务编码
     */
    @TableField("bus_code")
    private String busCode;
    /**
     * 提现费
     */
    @TableField("draw_fee")
    private BigDecimal drawFee;
    /**
     * 交易费率
     */
    @TableField("trade_rate")
    private BigDecimal tradeRate;
    @TableField("res_code")
    private String resCode;
    @TableField("res_msg")
    private String resMsg;
    /**
     * （0-待开通，1-成功 2-失败）
     */
    private Integer status;
    
    @TableField(exist=false)
    private String mchNo;
   


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMerCode() {
        return merCode;
    }

    public void setMerCode(String merCode) {
        this.merCode = merCode;
    }

    public String getChMerCode() {
        return chMerCode;
    }

    public void setChMerCode(String chMerCode) {
        this.chMerCode = chMerCode;
    }

    public String getBusCode() {
        return busCode;
    }

    public void setBusCode(String busCode) {
        this.busCode = busCode;
    }

    public BigDecimal getDrawFee() {
        return drawFee;
    }

    public void setDrawFee(BigDecimal drawFee) {
        this.drawFee = drawFee;
    }

    public BigDecimal getTradeRate() {
        return tradeRate;
    }

    public void setTradeRate(BigDecimal tradeRate) {
        this.tradeRate = tradeRate;
    }

    public String getResCode() {
        return resCode;
    }

    public void setResCode(String resCode) {
        this.resCode = resCode;
    }

    public String getResMsg() {
        return resMsg;
    }

    public void setResMsg(String resMsg) {
        this.resMsg = resMsg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getMchNo() {
		return mchNo;
	}

	public void setMchNo(String mchNo) {
		this.mchNo = mchNo;
	}

	@Override
    public String toString() {
        return "MchBus{" +
        "id=" + id +
        ", merCode=" + merCode +
        ", chMerCode=" + chMerCode +
        ", busCode=" + busCode +
        ", drawFee=" + drawFee +
        ", tradeRate=" + tradeRate +
        ", resCode=" + resCode +
        ", resMsg=" + resMsg +
        ", status=" + status +
        "}";
    }
}
